package com.hqq.pack4;

//目标类
public class SomeServiceImpl implements SomeService {
    @Override
    public void doSome(String name,Integer age) {
        //给这个方法增加切面，代码运行前打印运行时间
        System.out.println("====目标方法doSome（）"+ name+"-"+age+"=====");


    }

    @Override
    public String doOther(String name, Integer age) {
        System.out.println("====目标方法doOther（）"+ name+"-"+age+"=====");
        return "abc";
    }

    @Override
    public String doAround(String name, Integer age) {
        System.out.println("===要环绕添加的目标方法doFirst()=====");

        return "doAround";
    }

    @Override
    public void doAfterThrowing() {
        //创建一个异常
        System.out.println("===doAfterThrowing()====="+(10/0));
    }

}
